<?php
require_once('model.php');

/**
 * melbourne Class
 * 
 * Class for getting information about melbourne
 * @author Victor Nava
 *
 */
class melbourne {

	/**
	 * Gets all the suburbs
	 * @param $args
	 * @return Array suburbs
	 */
	function getSuburbs($args=null){
		$suburbs = new model('suburbs');
		return $suburbs->getAll($args);
	}

	/**
	 * Gets a suburb by id
	 * @param $id
	 * @return Array suburb
	 */
	function getSuburb($id){
		$suburbs = new model('suburbs');
		return $suburbs->get($id);
	}

	/**
	 * Gets all the postcodes
	 * @param $args
	 * @return Array postcodes
	 */
	function getPostcodes($args=null){
		$postcodes = new model('postcodes');
		return $postcodes->getAll($args);
	}

	/**
	 * Gets a postcode by id
	 * @param $id
	 * @return Array postcode
	 */
	function getPostcode($id){
		$postcodes = new model('postcodes');
		return $postcodes->get($id);
	}
}
?>